package ProTest;

import java.util.ArrayList;
import java.util.List;

/**
 * ArrayTest
 *
 * @author byc
 * @date 2021-08-21
 */
public class ArrayTest {
    public static void main(String[] args) {
        ArrayTest arrayTest = new ArrayTest();
        arrayTest.ArrayTest3();
    }
    public void ArrayTest3(){
        int[][][] array = {
                {{0,0,0},{1,1,1},{2,2,2}},
                {{3,3,3},{4,4,4},{5,5,5}},
                {{6,6,6},{7,7,7},{8,8,8}}
        };
        for (int[][] arr1 : array) {
            for (int[] arr2 : arr1) {
                for (int arr3 : arr2) {
                    System.out.print(arr3);
                    System.out.print(" ");
                }
                System.out.print("| ");
            }

            System.out.println();
        }
    }

}
